<?php
$cs = Yii::app()->getClientScript();
$cs->registerCSSFile(Yii::app()->request->baseUrl . '/css/mobile/booking_find_1.css');
$screen = Blyn::app()->getUIManager()->getCurrentScreen();
$wxControl = $screen->getChildControl('BUIWXControl_1');
?>
<style>
    * {
        font-size: .28rem;
    }
    .box {
        margin-top: .2rem;
        margin-bottom: .4rem;
    }

    .box:last-child {
        margin-bottom: 0;
    }

    .abc {
        border-top: 1px solid #ddd8ce;
        border-bottom: 1px solid #ddd8ce;
        clear: both;
    }

    .abc:last-child {
        border-bottom: none;
    }

    .charlist li {
        display: inline-block;
        width: 20%;
        height: .8rem;
        text-align: center;
        line-height: .8rem;
        color: #1BB3A4;
        font-size: .28rem;
    }

    .city-name {
        color: #666;
    }
</style>


<!--</head>-->
<!--<body id="changecity" huaban_collector_injected="true">-->

        <header class="navbar">
                <div class="nav-wrap-left">
                    <a class="react back" href="javascript:history.back()"><i class="text-icon icon-back"></i></a>
                </div>
            <h1 class="nav-header">选择城市</h1>
            <?php $wxControl->renderView('booking_navigation',array());?>
        </header>

<div id="tips"></div>

<div id="cityBox" class="wrapper">
    <div class="js-recent-block" style="display: none">
        <h4>最近访问</h4>

        <div id="recently-city" class="box nopadding">
            <ul class="table">
            </ul>
        </div>
    </div>
    <h4>热门城市</h4>

    <div id="hot-city" class="box nopadding">
        <?php
        $cityList = Blyn::app()->getActiveApp()->getCityList();
        ?>
        <ul class="table">
            <?php
            foreach($cityList as $key=>$city) {
                $bookingFindUrl = $wxControl->getLinkUrl(array(
                            'name' => 'booking_find_1',
                            'id' => 'booking_find_1'),array(
                            'nowCity' => $key   //$key=china.chongqing,$city=重庆
                        ));
                echo '<li><a class="react" gaevent="imt/selectCity/shanghai" href="'.$bookingFindUrl.'" data-citypinyin="">'.$city.'</a>';
            }
            ?>
<!--        <li><a class="react" gaevent="imt/selectCity/shanghai" href="http://i.meituan.com/?city=shanghai" data-citypinyin="shanghai">上海</a>
        </li><li><a class="react" gaevent="imt/selectCity/beijing" href="http://i.meituan.com/?city=beijing" data-citypinyin="beijing">北京</a>
        </li><li><a class="react" gaevent="imt/selectCity/chongqing" href="http://i.meituan.com/?city=chongqing" data-citypinyin="chongqing">重庆</a>
        </li><li><a class="react" gaevent="imt/selectCity/chengdu" href="http://i.meituan.com/?city=chengdu" data-citypinyin="chengdu">成都</a>
        </li><li><a class="react" gaevent="imt/selectCity/shenzhen" href="http://i.meituan.com/?city=shenzhen" data-citypinyin="shenzhen">深圳</a>
        </li><li><a class="react" gaevent="imt/selectCity/nanjing" href="http://i.meituan.com/?city=nanjing" data-citypinyin="nanjing">南京</a>
        </li><li><a class="react" gaevent="imt/selectCity/tianjin" href="http://i.meituan.com/?city=tianjin" data-citypinyin="tianjin">天津</a>
        </li><li><a class="react" gaevent="imt/selectCity/hangzhou" href="http://i.meituan.com/?city=hangzhou" data-citypinyin="hangzhou">杭州</a>
        </li><li><a class="react" gaevent="imt/selectCity/guangzhou" href="http://i.meituan.com/?city=guangzhou" data-citypinyin="guangzhou">广州</a>
        </li><li><a class="react" gaevent="imt/selectCity/xian" href="http://i.meituan.com/?city=xian" data-citypinyin="xian">西安</a>
        </li><li><a class="react" gaevent="imt/selectCity/wuhan" href="http://i.meituan.com/?city=wuhan" data-citypinyin="wuhan">武汉</a>
        </li>-->
        </ul>
    </div>

</div>
    <footer>
        <div class="footer-nav">
        <div class="footer-copyright">
            <div class="hr"></div>
            <span class="footer-copyright-text"> Copyright © 2014 billyn.net </span>
        </div>
    </footer>
    

<div id="meituan_check"><br><br><br></div>